package com.ktgj.customer.mapper;

import java.util.List;

import com.ktgj.customer.domain.OrderPaymentRecord2Dto;
import org.springframework.stereotype.Repository;

/**
 * 支付记录Mapper接口
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Repository
public interface OrderPaymentRecord2Mapper
{
    /**
     * 查询支付记录
     * 
     * @param payId 支付记录ID
     * @return 支付记录
     */
    public OrderPaymentRecord2Dto selectOrderPaymentRecord2ById(Long payId);

    public OrderPaymentRecord2Dto selectOrderPaymentByOrderId(Long orderId);

    /**
     * 查询支付记录列表
     * 
     * @param orderPaymentRecord2Dto 支付记录
     * @return 支付记录集合
     */
    public List<OrderPaymentRecord2Dto> selectOrderPaymentRecord2List(OrderPaymentRecord2Dto orderPaymentRecord2Dto);

    /**
     * 新增支付记录
     * 
     * @param orderPaymentRecord2Dto 支付记录
     * @return 结果
     */
    public int insertOrderPaymentRecord2(OrderPaymentRecord2Dto orderPaymentRecord2Dto);

    /**
     * 修改支付记录
     * 
     * @param orderPaymentRecord2Dto 支付记录
     * @return 结果
     */
    public int updateOrderPaymentRecord2(OrderPaymentRecord2Dto orderPaymentRecord2Dto);

    /**
     * 删除支付记录
     * 
     * @param payId 支付记录ID
     * @return 结果
     */
    public int deleteOrderPaymentRecord2ById(Long payId);

    /**
     * 批量删除支付记录
     * 
     * @param payIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderPaymentRecord2ByIds(Long[] payIds);
}
